<?php
if ($tipo = 'busqueda') {
    $items = Load::model('youtube')->search($value, 1);
    if (count($items) > 0) {
        echo "<ul class='listagd'>";
        //Load::lib('general');
        foreach ($items as $value)
            echo '<li><a href="/youtube/download/' . $value['videoId'] . '/' . $value['tituloUrl'] . '/" title="Descargar: ' . $value['titulo'] . '">' . General::cortar(strtolower($value['titulo']),40) . '</a></li>';
        echo "</ul>";
    }
}
?> 

